﻿@{
    Layout = null;
}
@using CMSMVC4.MultiResource
@model System.Data.DataTable
<div class="accordion-group">
    <div class="accordion-heading">
        <a class="accordion-toggle collapsed" 
            href="/Admin/Baner/Index/thietbi"><span style="color: black">@Admin.ThietBi </span></a>
    </div>
    <div id="thietbi" class="accordion-body collapse " style="height: 0px;">
        <div class="accordion-inner">
            <div class="row-fluid">
                <div class="box color_12">
                    <div class="title">
                        <h4>
                            <span>Baner<small></small></span></h4>
                    </div>
                    <div class="content top">
                        <table class="responsive table table-striped table-bordered" style="width: 100%">
                            <thead>
                                <tr>
                                    <th class="">
                                        Url
                                    </th>
                                    <th class="">
                                        Image
                                    </th>
                                    <th class="">@Admin.Location
                                    </th>
                                    <th class="">@Admin.Actions
                                    </th>
                                </tr>
                            </thead>
                            <tbody>
                                @for (var i = 0; i < Model.Rows.Count; i++)
                                {
                                    <tr>
                                        <td class="">@Model.Rows[i]["Url"].ToString()
                                        </td>
                                        <td class="">
                                            <img src="@Model.Rows[i]["Name"]" alt="" style="height: 80px"/>
                                        </td>
                                        @if (Model.Rows[i]["Location"].ToString() == "0")
                                        {
                                            <td class="">@Admin.Top
                                            </td>  
                                        }
                                        @if (Model.Rows[i]["Location"].ToString() == "1")
                                        {
                                            <td class="">@Admin.Left
                                            </td>  
                                        }
                                        <td class="">
                                            <a class="btn btn-small" rel="tooltip" data-original-title="@Admin.Edit" data-ajax="true" 
                                           data-ajax-method="Get" data-ajax-mode="replace" data-ajax-success="showRemoveContact()" 
                                           data-ajax-update="#dialog" href="/Admin/Baner/Edit/@Model.Rows[i]["Id"]"><i class="gicon-edit">
                                           </i></a><a class="btn btn-small" rel="tooltip" data-original-title="@Admin.Remove" data-ajax="true" 
                                           data-ajax-method="Get" data-ajax-mode="replace" data-ajax-success="showRemoveContact()" 
                                           data-ajax-update="#dialog" href="/Admin/Baner/Delete/@Model.Rows[i]["Id"]"><i class="gicon-remove">
                                           </i></a>
                                        </td>
                                    </tr>
                                }
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
